<template>
  <div id="app">
     <keep-alive>
     <router-view v-if="$route.meta.keepAlive">
     </router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive">
    </router-view>
  </div>
  
</template>

<script>
import Vue from "vue";

//全局过滤器
Vue.filter("moneyFormat", function(value) {
  var value = Math.round(parseFloat(value) * 100) / 100;
  var xsd = value.toString().split(".");
  if (xsd.length == 1) {
    value = value.toString() + ".00";
  } else if (xsd.length > 1) {
    if (xsd[1].length < 2) {
      value = value.toString() + "0";
    }
  }
  return "" + value;
});
export default {
  name: 'App'
}
</script>

<style>
.yd-keyboard-title{
  display: none;
}
body{
    overflow:scroll;overflow-x:hidden
}
#app {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}
/* 去掉ios输入框阴影 */
input {
  -webkit-appearance: none;
}
.yd-slider-pagination-item-active{
  background: #cbcbcb !important;
}
.box .yd-slider-pagination{
  bottom: .3rem!important;
}
.yd-tab-nav:after{
  background-image: none !important;
}
.without{
  width:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30%;
}
.without img{
  width: 2.23rem!important;
  height: 2.15rem!important;
}
.without span:nth-child(2){
  font-size: .26rem!important;
  color:#707070;
  margin-top: .23rem!important;
}
.top2{
  width: .8rem;
  height: .8rem;
  color: #fff;
  background: rgba(0,0,0,.6);
  position: fixed;
  z-index: 999;
  right: .1rem;
  bottom: 1.2rem;
  text-align: center;
  line-height: .8rem;
  border-radius: 100%;
}
</style>
